<%--
  Created by IntelliJ IDEA.
  User: sandideas
  Date: 2016/9/12
  Time: 11:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div style="margin:0 auto;width:900px;margin-top: 10px">
    <form method="post" action="${path}/userAction!saveOrUpdateUser">
        <input type="hidden" name="user.usererollTime" value="${user.erollTime}">
        <input type="hidden" name="user.loginTime" value="${user.loginTime}">
        <input type="hidden" name="user.userId" value="${user.userId}">
        <input type="hidden" name="state" value="${state}">
        <table>
            <tr>
                <td>用户名</td>
                <td>
                    <input type="text" name="user.userName" value="${user.userName}">
                </td>
                <td>密码</td>
                <td><input type="text" name="user.password" value="${user.password}"></td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <c:choose>
                        <c:when test="${user.userSex==0}">
                            <input type="radio" name="user.userSex" value="0" checked>女
                            <input type="radio" name="user.userSex" value="1">男
                        </c:when>
                        <c:otherwise>
                            <input type="radio" name="user.userSex" value="0">女
                            <input type="radio" name="user.userSex" value="1" checked>男
                        </c:otherwise>
                    </c:choose>
                </td>
                <td>电话</td>
                <td><input type="text" name="user.telePhone" value="${user.telePhone}"></td>
            </tr>
            <tr>
                <td>邮箱</td>
                <td><input type="text" name="user.email" value="${user.email}"></td>
                <%--<td>生日</td>--%>
                <%--<td><input type="text" id="beginTime" class="sang_Calender" name="user.birthday" value="${user.birthday}"/></td>--%>
                <td>地址</td>
                <td><input type="text" name="user.address" value="${user.address}"></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="提交"></td>
                <td colspan="2"><input type="reset" value="取消"></td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript" src="${path}/main/web/js/datetime.js"></script>
</body>
</html>
